﻿using JNPF.Common.Const;
using SqlSugar;

namespace JNPF.Website.Entitys;

/// <summary>
/// 产品分类实体.
/// </summary>
[SugarTable("website_product_category")]
[Tenant(ClaimConst.TENANTID)]
public class WebsiteProductCategoryEntity
{
    /// <summary>
    /// 主键.
    /// </summary>
    [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)]
    public string Id { get; set; }

    /// <summary>
    /// 父级.
    /// </summary>
    [SugarColumn(ColumnName = "F_ParentId")]
    public string ParentId { get; set; }

    /// <summary>
    /// 分类名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_Name")]
    public string Name { get; set; }

    /// <summary>
    /// 图片.
    /// </summary>
    [SugarColumn(ColumnName = "F_Image")]
    public string Image { get; set; }

    /// <summary>
    /// 链接.
    /// </summary>
    [SugarColumn(ColumnName = "F_Url")]
    public string Url { get; set; }

    /// <summary>
    /// 排序码.
    /// </summary>
    [SugarColumn(ColumnName = "F_SortCode")]
    public long SortCode { get; set; }

    /// <summary>
    /// 有效标志.
    /// </summary>
    [SugarColumn(ColumnName = "F_EnabledMark")]
    public int? EnabledMark { get; set; }

    /// <summary>
    /// 修改时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_LastModifyTime")]
    public DateTime? LastModifyTime { get; set; }

    /// <summary>
    /// 创建时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_CreatorTime")]
    public DateTime? CreatorTime { get; set; }

    /// <summary>
    /// 修改用户.
    /// </summary>
    [SugarColumn(ColumnName = "F_LastModifyUserId")]
    public string LastModifyUserId { get; set; }

    /// <summary>
    /// 创建用户.
    /// </summary>
    [SugarColumn(ColumnName = "F_CreatorUserId")]
    public string CreatorUserId { get; set; }

    /// <summary>
    /// 系列广告语.
    /// </summary>
    [SugarColumn(ColumnName = "F_Desc")]
    public string Desc { get; set; }

    /// <summary>
    /// 类型 1产品分类 2系列分类.
    /// </summary>
    [SugarColumn(ColumnName = "F_Type")]
    public int? Type { get; set; }

    /// <summary>
    /// 父级.
    /// </summary>
    [SugarColumn(ColumnName = "F_ParentIds")]
    public string ParentIds { get; set; }

}